﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000017 RID: 23
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class AcceptMainMissionCsReq : IMessage<AcceptMainMissionCsReq>, IMessage, IEquatable<AcceptMainMissionCsReq>, IDeepCloneable<AcceptMainMissionCsReq>, IBufferMessage
	{
		// Token: 0x1700003A RID: 58
		// (get) Token: 0x060000E0 RID: 224 RVA: 0x00004094 File Offset: 0x00002294
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<AcceptMainMissionCsReq> Parser
		{
			get
			{
				return AcceptMainMissionCsReq._parser;
			}
		}

		// Token: 0x1700003B RID: 59
		// (get) Token: 0x060000E1 RID: 225 RVA: 0x0000409B File Offset: 0x0000229B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return AcceptMainMissionCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700003C RID: 60
		// (get) Token: 0x060000E2 RID: 226 RVA: 0x000040AD File Offset: 0x000022AD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return AcceptMainMissionCsReq.Descriptor;
			}
		}

		// Token: 0x060000E3 RID: 227 RVA: 0x000040B4 File Offset: 0x000022B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AcceptMainMissionCsReq()
		{
		}

		// Token: 0x060000E4 RID: 228 RVA: 0x000040BC File Offset: 0x000022BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AcceptMainMissionCsReq(AcceptMainMissionCsReq other) : this()
		{
			this.mainMissionId_ = other.mainMissionId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060000E5 RID: 229 RVA: 0x000040E1 File Offset: 0x000022E1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AcceptMainMissionCsReq Clone()
		{
			return new AcceptMainMissionCsReq(this);
		}

		// Token: 0x1700003D RID: 61
		// (get) Token: 0x060000E6 RID: 230 RVA: 0x000040E9 File Offset: 0x000022E9
		// (set) Token: 0x060000E7 RID: 231 RVA: 0x000040F1 File Offset: 0x000022F1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MainMissionId
		{
			get
			{
				return this.mainMissionId_;
			}
			set
			{
				this.mainMissionId_ = value;
			}
		}

		// Token: 0x060000E8 RID: 232 RVA: 0x000040FA File Offset: 0x000022FA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as AcceptMainMissionCsReq);
		}

		// Token: 0x060000E9 RID: 233 RVA: 0x00004108 File Offset: 0x00002308
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(AcceptMainMissionCsReq other)
		{
			return other != null && (other == this || (this.MainMissionId == other.MainMissionId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060000EA RID: 234 RVA: 0x00004138 File Offset: 0x00002338
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.MainMissionId != 0U)
			{
				num ^= this.MainMissionId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060000EB RID: 235 RVA: 0x00004177 File Offset: 0x00002377
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060000EC RID: 236 RVA: 0x0000417F File Offset: 0x0000237F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060000ED RID: 237 RVA: 0x00004188 File Offset: 0x00002388
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.MainMissionId != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.MainMissionId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060000EE RID: 238 RVA: 0x000041BC File Offset: 0x000023BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.MainMissionId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MainMissionId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060000EF RID: 239 RVA: 0x000041FA File Offset: 0x000023FA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(AcceptMainMissionCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.MainMissionId != 0U)
			{
				this.MainMissionId = other.MainMissionId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060000F0 RID: 240 RVA: 0x0000422B File Offset: 0x0000242B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060000F1 RID: 241 RVA: 0x00004234 File Offset: 0x00002434
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 64U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.MainMissionId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04000041 RID: 65
		private static readonly MessageParser<AcceptMainMissionCsReq> _parser = new MessageParser<AcceptMainMissionCsReq>(() => new AcceptMainMissionCsReq());

		// Token: 0x04000042 RID: 66
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000043 RID: 67
		public const int MainMissionIdFieldNumber = 8;

		// Token: 0x04000044 RID: 68
		private uint mainMissionId_;
	}
}
